use utf8;
package MyApp::Schema::Result::ItemInstantiation;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

=head1 NAME

MyApp::Schema::Result::ItemInstantiation

=cut

use strict;
use warnings;

use base 'DBIx::Class::Core';

=head1 COMPONENTS LOADED

=over 4

=item * L<DBIx::Class::InflateColumn::DateTime>

=back

=cut

__PACKAGE__->load_components("InflateColumn::DateTime");

=head1 TABLE: C<item_instantiation>

=cut

__PACKAGE__->table("item_instantiation");

=head1 ACCESSORS

=head2 id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

=head2 modifier

  data_type: 'text'
  default_value: 'NONE'
  is_nullable: 1

=head2 when_created

  data_type: 'date'
  default_value: CURRENT_DATE
  is_nullable: 1

=head2 char_name_fk

  data_type: (empty string)
  is_foreign_key: 1
  is_nullable: 1

=head2 item_id_fk

  data_type: (empty string)
  is_foreign_key: 1
  is_nullable: 1

=head2 creep_id_fk

  data_type: (empty string)
  is_foreign_key: 1
  is_nullable: 1

=cut

__PACKAGE__->add_columns(
  "id",
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
  "modifier",
  { data_type => "text", default_value => "NONE", is_nullable => 1 },
  "when_created",
  { data_type => "date", default_value => \"CURRENT_DATE", is_nullable => 1 },
  "char_name_fk",
  { data_type => "", is_foreign_key => 1, is_nullable => 1 },
  "item_id_fk",
  { data_type => "", is_foreign_key => 1, is_nullable => 1 },
  "creep_id_fk",
  { data_type => "", is_foreign_key => 1, is_nullable => 1 },
);

=head1 PRIMARY KEY

=over 4

=item * L</id>

=back

=cut

__PACKAGE__->set_primary_key("id");

=head1 RELATIONS

=head2 char_name_fk

Type: belongs_to

Related object: L<MyApp::Schema::Result::CharacterT>

=cut

__PACKAGE__->belongs_to(
  "char_name_fk",
  "MyApp::Schema::Result::CharacterT",
  { char_name => "char_name_fk" },
  {
    is_deferrable => 0,
    join_type     => "LEFT",
    on_delete     => "NO ACTION",
    on_update     => "NO ACTION",
  },
);

=head2 creep_id_fk

Type: belongs_to

Related object: L<MyApp::Schema::Result::CreepInstantiation>

=cut

__PACKAGE__->belongs_to(
  "creep_id_fk",
  "MyApp::Schema::Result::CreepInstantiation",
  { id => "creep_id_fk" },
  {
    is_deferrable => 0,
    join_type     => "LEFT",
    on_delete     => "NO ACTION",
    on_update     => "NO ACTION",
  },
);

=head2 item_id_fk

Type: belongs_to

Related object: L<MyApp::Schema::Result::Item>

=cut

__PACKAGE__->belongs_to(
  "item_id_fk",
  "MyApp::Schema::Result::Item",
  { name => "item_id_fk" },
  {
    is_deferrable => 0,
    join_type     => "LEFT",
    on_delete     => "NO ACTION",
    on_update     => "NO ACTION",
  },
);


# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-01-05 23:33:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QJmzLA0ZwQXnyI0Gj2vStg


# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
